﻿using Microsoft.Extensions.DependencyInjection;

namespace YiSha.Business.Cache
{
    public static class ServiceCollectionExtension
    {
        public static IServiceCollection AddBusinessCache(this IServiceCollection services)
        {
            services.AddScoped<AreaCache>();
            services.AddScoped<MenuCache>();
            services.AddScoped<DataDictCache>();
            services.AddScoped<DataDictDetailCache>();
            services.AddScoped<MenuAuthorizeCache>();
            return services;
        }
    }
}
